package com.longxin.demoapp.experiments.experiment2.service;

import android.content.Context;

import com.longxin.demoapp.base.adapter.IBaseAdapter;
import com.longxin.demoapp.base.service.IBaseService;
import com.longxin.demoapp.experiments.experiment2.pojo.entity.Experiment2EntityUser;

import java.util.List;

/**
 * @author Long
 * @version 1.0
 * @description:
 * @remarks:
 * @title ExperimentActivity2Service
 * @date 2021/4/6 17:32
 */
public interface Experiment2Service extends IBaseService {

    /**
     * @description: 初始化活动
     * @author Long
     * @date 2021/4/7 18:34
     */
    void initActivity(final IBaseAdapter adapter);

    /**
     * @description: 查询联系人
     * @author Long
     * @date 2021/4/7 18:34
     */
    List<Experiment2EntityUser> query(String var);


    /**
     * @description: 插入新联系人
     * @author Long
     * @date 2021/4/7 18:35
     */
    boolean insert(Experiment2EntityUser user, final IBaseAdapter<Experiment2EntityUser> adapter);

    /**
     * @description: 更新联系人
     * @author Long
     * @date 2021/4/7 18:35
     */
    boolean update(Experiment2EntityUser user, final IBaseAdapter<Experiment2EntityUser> adapter);

    /**
     * @description: 删除联系人
     * @author Long
     * @date 2021/4/7 18:36
     */
    boolean remove(Experiment2EntityUser user);

    void userNum(int num);
}
